﻿using System;
using System.Collections.Generic;
using System.Linq;
using System.Text;

namespace ClientApplication.DTO
{
    class Population
    {
        public int Id { get; set; }
        public string CityName { get; set; }
        public decimal PopulationValue { get; set; }
        public int Time { get; set; }
        /// <summary>
        /// 把this存到数据库中
        /// </summary>
        public GISEntity.POPULATION getDatabaseGDP()
        {

            //构造GISEntity中的GDPs对象
            GISEntity.POPULATION population = new GISEntity.POPULATION();
            population.TIME = new DateTime(Time, 12, 30);
            population.POPVALUE = PopulationValue;
            population.CITYNAME = CityName;
            return population;
        }
    }
}
